package com.example.controller.datastatistics.yanglaofuwurenqun;

import com.example.bean.datastatistics.yanglaofuwurenqun.YangLaoFuWuRenQunDuoTiaoJian;
import com.example.service.datastatistics.yanglaofuwurenqun.YangLaoFuWuRenQunService;
import com.example.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("/renqun")
public class YangLaoFuWuRenQunController {
    @Autowired
    YangLaoFuWuRenQunService yangLaoFuWuRenQunService;
    @PostMapping
    public Result numData( @RequestBody YangLaoFuWuRenQunDuoTiaoJian yangLaoFuWuRenQunDuoTiaoJian){
        Result result =  new Result();
        result.ok();
        result.setData(yangLaoFuWuRenQunService.numList(yangLaoFuWuRenQunDuoTiaoJian));
        return result;
    }
}
